//
//  ComposeTextView.swift
//  VVbo
//
//  Created by Mr.Run on 2017/9/8.
//  Copyright © 2017年 Mr.Run. All rights reserved.
//

import UIKit

class ComposeTextView: UITextView {

    lazy var placeholderLabel = UILabel()
    
    override func awakeFromNib() {
        super.awakeFromNib()
        setupUI()
    }

}

fileprivate extension ComposeTextView {
    
    func setupUI() {
        placeholderLabel.text = "分享新鲜事..."
        placeholderLabel.font = font
        placeholderLabel.sizeToFit()
        placeholderLabel.frame.origin = CGPoint(x: 5, y: 8)
        placeholderLabel.textColor = UIColor.lightGray
        addSubview(placeholderLabel)
    }
    
}
